#ifndef COUNTDOWN_H
#define COUNTDOWN_H

#include <QWidget>
#include<QPixmap>
#include<QTimer>
class CountDown : public QWidget
{
    Q_OBJECT
public:
    explicit CountDown(QWidget *parent = nullptr);
    void showCountDown();
    void stopCountDown();
signals:
    void notMuchTime();
    void timeout();

private:
    int m_count;
    QPixmap m_clock;
    QPixmap m_number;
    QTimer *m_timer;

    // QWidget interface
protected:
    virtual void paintEvent(QPaintEvent *event) override;
};


#endif // COUNTDOWN_H
